atom_feed :language=>"en_US"do |feed|
  feed.title(SETTINGS['rss.title'])
  feed.updated(Time.now)


  cache "rss_feed_for_most_comment_matches",SETTINGS['rss.cache.time'].from_now do
    for match in @most_comment_matches
      feed.entry(match,:url=>"http://apps.facebook.com/thirteenwins") do |entry|
        entry.title(match_rss_title(match))
        entry.content(match_rss_content(match,:comment), :type => 'html')
        entry.author do |author|
          author.name("13wins")
        end
      end
    end
  end


  cache "rss_feed_for_most_bet_matches",SETTINGS['rss.cache.time'].from_now do
    for match in @most_bet_matches
      feed.entry(match,:url=>"http://apps.facebook.com/thirteenwins") do |entry|
        entry.title(match_rss_title(match))
        entry.content(match_rss_content(match,:bet), :type => 'html')
        entry.author do |author|
          author.name("13wins")
        end
      end
    end
  end


  # recent 
  for match in @recent_matches
    feed.entry(match,:url=>"http://apps.facebook.com/thirteenwins") do |entry|
      entry.title(match_rss_title(match))
      entry.content(match_rss_content(match), :type => 'html')
      entry.author do |author|
        author.name("13wins")
      end
    end
  end



end
